/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bionic.socialNet.dao.interfaces;

import com.bionic.socialNet.entities.LoginData;
import com.bionic.socialNet.entities.UserData;
import java.util.Collection;
import java.util.List;

/**
 *
 * @author Ann
 */
public interface IUserDAO {

    public boolean setUserEnabled(int UserID, boolean IsEnabled);

    public UserData findUser(String userLogin); //

    public boolean updateUser(UserData userData);

    public boolean isAdmin(int userID);

    public boolean isLoginAlreadyTaken(String login);
    
    public boolean isLoginExecute(LoginData loginData);
    
    public boolean registerUser(LoginData loginData); // returns new user id

    public List<UserData> selectUsersList(String Criteria);
}
